package co.yixiang.yshop.module.product.convert.storeproductassureref;

import co.yixiang.yshop.framework.common.pojo.PageResult;
import co.yixiang.yshop.module.product.controller.admin.storeproductassureref.vo.StoreProductAssureRefCreateReqVO;
import co.yixiang.yshop.module.product.controller.admin.storeproductassureref.vo.StoreProductAssureRefExcelVO;
import co.yixiang.yshop.module.product.controller.admin.storeproductassureref.vo.StoreProductAssureRefRespVO;
import co.yixiang.yshop.module.product.controller.admin.storeproductassureref.vo.StoreProductAssureRefUpdateReqVO;
import co.yixiang.yshop.module.product.dal.dataobject.storeproductassureref.StoreProductAssureRefDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 商品保障服务关联 Convert
 *
 * @author admin
 */
@Mapper
public interface StoreProductAssureRefConvert {

    StoreProductAssureRefConvert INSTANCE = Mappers.getMapper(StoreProductAssureRefConvert.class);

    StoreProductAssureRefDO convert(StoreProductAssureRefCreateReqVO bean);

    StoreProductAssureRefDO convert(StoreProductAssureRefUpdateReqVO bean);

    StoreProductAssureRefRespVO convert(StoreProductAssureRefDO bean);

    List<StoreProductAssureRefRespVO> convertList(List<StoreProductAssureRefDO> list);

    PageResult<StoreProductAssureRefRespVO> convertPage(PageResult<StoreProductAssureRefDO> page);

    List<StoreProductAssureRefExcelVO> convertList02(List<StoreProductAssureRefDO> list);

}
